package com.iotechn.unimall.app.api.active;

import com.iotechn.unimall.core.annotation.HttpMethod;
import com.iotechn.unimall.core.annotation.HttpOpenApi;
import com.iotechn.unimall.core.annotation.HttpParam;
import com.iotechn.unimall.core.annotation.HttpParamType;
import com.iotechn.unimall.core.annotation.param.NotNull;
import com.iotechn.unimall.core.exception.ServiceException;
import com.iotechn.unimall.data.domain.ActiveInfoDO;
import com.iotechn.unimall.data.model.Page;

/**
 * 社区活动表
 *
 * @author hct
 * @email 77802226@qq.com
 * @date 2022-05-25 21:44:39
 */
@HttpOpenApi(group = "activeInfo", description = "活动")
public interface ActiveInfoService {

    @HttpMethod(description = "列表")
    public Page<ActiveInfoDO> list(
            @HttpParam(name = "pageNo", type = HttpParamType.COMMON, description = "页码", valueDef = "1") Integer page,
            @HttpParam(name = "limit", type = HttpParamType.COMMON, description = "页长度", valueDef = "20") Integer limit
    ) throws ServiceException;

    @HttpMethod(description = "详情")
    public ActiveInfoDO detail(
            @NotNull @HttpParam(name = "id", type = HttpParamType.COMMON, description = "Id") Long id
    ) throws ServiceException;


}

